import AdminFrame from '@/components/Admin/AdminFrame'
import Stock from '@/components/Admin/Stock'
import Users from '@/components/Admin/Users'
import Order from '@/components/Admin/Order'
import Sales from '@/components/Admin/Sales'

export default {
  path: '/admin',
  component: AdminFrame,
  children: [
    {
      path: 'stock',
      name: 'AdminStock',
      component: Stock
    },
    {
      path: 'users',
      name: 'AdminUsers',
      component: Users
    },
    {
      path: 'order',
      name: 'AdminOrder',
      component: Order
    },
    {
      path: 'sales',
      name: 'AdminSales',
      component: Sales
    }
  ],
  meta: { login: true, admin: true }
}
